<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<link type="text/css" rel="stylesheet" href="/css/style.css"/>
		<script type="text/javascript" src="/js/jquery-1.8.0.min.js"></script>
	</head>
	<body>
		<div id="wrap">
			<!--head start-->
			<div class="head">			
			</div>
			<!--head end-->
			<!--main start-->
			<div class="main">
				
				<div class="main_top" style="padding-top:20px;height:50px;min-height:50px;_height:50px;">
				</div>
				<!--main_cen start-->
				<div class="main_cen">
					<div class="mainCenT1">
						<form id="vForm" name="vForm" action="reg.action" method="post">
							<ul class="easyReg">
								<li>
									<label>用户名:</label>
									<div class="inputbox">
										
										<span class="input inputRed">
										<cite>
											<input id="inputUserName" class="ipt" type="text" maxlength="64" name="user.userName">
										</cite>
										</span>
										
									</div>
									<span></span>
									<span></span>
								</li>
								<li>
									<label>登录密码:</label>
									<div class="inputbox">
										
										<span class="input inputRed">
											<cite><input id="inputPassWord" class="ipt" type="password" maxlength="64" name="user.userPassword">
											</cite>
										</span>
										
									</div>
									<span></span>
									<span></span>
								</li>
								<li>
									<label>确认密码:</label>
									<div class="inputbox">
										
										<span class="input inputRed">
											<cite><input id="reInputPassWord" class="ipt" type="password" maxlength="64">
											</cite>
										</span>
										
									</div>
									<span></span>
									<span></span>
								</li>
								<li>
									<label>Email:</label>
									<div class="inputbox">										
										<span class="input inputRed">
											<cite><input id="inputEmail" class="ipt" type="text" maxlength="64" name="user.userEmail" onkeyup="checkEmail()">
											</cite>
										</span>									
									</div>
									<span id="checkEmailInfo"></span>
									<span></span>
								</li>
								
								<!--					
								<li>
									<label>验证码:</label>
									<span></span>
									<span></span>
								</li>
								-->
								<li>
									<input class="btn_submit" type="button" value="注册" onclick="submitReg()">
								</li>
								<li class="clearit"></li>
							</ul>
						</form>
					</div>
					<div class="clearit">
					</div>
				</div>
				<!--main_cen end-->
				<div class="main_bottom">
				</div>
			</div>
			<!--main end-->
			<div class="Footer">
			</div>
		</div>
		
		<script>
			function submitReg(){
				document.getElementById("vForm").submit();
			}
			function checkEmail(){
				var iptEmail = document.getElementById("inputEmail");
				var iptVal =  iptEmail.value;
				var minLength = iptVal.length;
				if(minLength>5){
					$.post("/wust/compareEmail.action?user.userEmail="+iptVal,function(result){
						var rs = result;
						if(result.toString()=="true"){
							$("#checkEmailInfo").html("该Email已被注册!");
						}else{
							$("#checkEmailInfo").html("该Email可用!");
						}
					},"html" )
				}
			}
			$(function(){
				
			})
		</script>
	</body>
</html>